
; Mine Field mod.

; Include the code below in any script to add Mine Fields to GTA VC.

; To place a mine, use 004F: create_thread PlaceMine <x> <y> <z>

; To place a mine outside the lawyers office, use
; 004F: create_thread PlaceMine 118.8 -821.8 10.5  

; To create a large Mine Field, use 004F: create_thread PlaceMine <x> <y> <z>
; multiple times (with different coordinates each time) in the area you want
; a mine field. 

...

:PlaceMine
0087: 3@ = 0@  ;; floating-point values only 
0087: 4@ = 1@  ;; floating-point values only 
0087: 5@ = 2@  ;; floating-point values only 

0087: 6@ = 0@  ;; floating-point values only 
0087: 7@ = 1@  ;; floating-point values only 
0087: 8@ = 2@  ;; floating-point values only 

000F: 3@ -= 0.1  ;; floating-point values 
000F: 4@ -= 0.1  ;; floating-point values 
000F: 5@ -= 0.1  ;; floating-point values 

000B: 6@ += 0.1  ;; floating-point values 
000B: 7@ += 0.1  ;; floating-point values 
000B: 8@ += 0.1  ;; floating-point values 

:PlaceMineLoop
0001: wait 250 ms 
00D6: if 0 
0339:   objects_in_cube 3@ 4@ 5@ 6@ 7@ 8@ 0 1 1 0 0 
004D: jump_if_false PlaceMineLoop
020C: create_explosion_with_radius 2 at 0@ 1@ 2@ 
004E: end_thread 

